<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'store-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'productid'); ?>
		<?php echo $form->textField($model,'productid'); ?>
		<?php echo $form->error($model,'productid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'billid'); ?>
		<?php echo $form->textField($model,'billid'); ?>
		<?php echo $form->error($model,'billid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pricebuy'); ?>
		<?php echo $form->textField($model,'pricebuy',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'pricebuy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'datebuy'); ?>
		<?php echo $form->textField($model,'datebuy'); ?>
		<?php echo $form->error($model,'datebuy'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pricesell'); ?>
		<?php echo $form->textField($model,'pricesell',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'pricesell'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'datesell'); ?>
		<?php echo $form->textField($model,'datesell'); ?>
		<?php echo $form->error($model,'datesell'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'created'); ?>
		<?php echo $form->textField($model,'created'); ?>
		<?php echo $form->error($model,'created'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'recommendpricesell'); ?>
		<?php echo $form->textField($model,'recommendpricesell',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'recommendpricesell'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'orderid'); ?>
		<?php echo $form->textField($model,'orderid'); ?>
		<?php echo $form->error($model,'orderid'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->